#!/bin/bash
#mingw32-gcc下载地址:##################################################################################
####http://mirror.transact.net.au/sourceforge/f/project/ff/ffdshow-tryout/Tools/mingw32_gcc452_20110619.exe

export PATH=/opt/EmbedSky/4.3.3/bin:$PATH

if [ -f xvidcore-1.3.2.tar.gz ]; then
		echo "xvidcore-1.3.2.tar.gz文件已经存在"
else
		echo "xvidcore-1.3.2.tar.gz 文件不存在正在准备下载"
		wget http://downloads.xvid.org/downloads/xvidcore-1.3.2.tar.gz
fi

mkdir -p xvidcore-1.3.2
tar xvf xvidcore-1.3.2.tar.gz -C xvidcore-1.3.2

pushd xvidcore-1.3.2/xvidcore/build/generic/
make clean
make distclean
./configure --prefix=${PWD}/../../../../__installed/gcc4.3.3/xvid-1.3.2
make -j5
make   ####mingw32+msys一定要执行两次make命令，修正前面一次make错误
make install
popd






export PATH=/opt/EmbedSky/4.4.6/bin:$PATH
pushd xvidcore-1.3.2/xvidcore/build/generic/
make clean
make distclean
./configure --prefix=${PWD}/../../../../__installed/gcc4.4.6/xvid-1.3.2
make -j5
make   ####mingw32+msys一定要执行两次make命令，修正前面一次make错误
make install
popd

